package com.ibeeking.found.content.api.feign;

import com.ibeeking.found.content.api.common.dto.MaInfoDTO;
import com.ibeeking.found.content.api.feign.fallback.MsgMaInfoBFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 消息服务-微信小程序配置
 *
 * @Author ibeeking
 */
@FeignClient(name = "base-msg-server", path = "/b", contextId = "contentMsgMaInfoClient", fallbackFactory = MsgMaInfoBFallbackFactory.class, decode404 = true)
public interface MsgMaInfoFeignBClient {

    /**
     * 查询微信小程序相关配置
     *
     * @return
     */
    @GetMapping(value = "/maInfo/feign/v1/queryMaInfo")
    ResponseResult<MaInfoDTO> queryMaInfo();
}
